package com.koron.rating.classify.services;

import com.koron.bean.base.Response;
import com.koron.bean.system.org.OrgBean;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "eam-service-system", fallbackFactory = FeignFallbackFactory.class)
public interface SystemFeignService {

    @GetMapping("/system/org/getSortByName")
    Integer getSortByName(@RequestParam("name") String name);

    @GetMapping("/system/org/querySingleOrg")
    Response<OrgBean> querySingleOrg(@RequestParam("id") String id);

    @ApiOperation(value = "查询组织列表(不分页)")
    @GetMapping("/system/org/queryNextOrgList")
    Response<List<OrgBean>> queryNextOrgList(@SpringQueryMap OrgBean orgBean);
}
